<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>更新员工信息页面</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>

    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
</head>

<body >
<!--style="background-color:olivedrab"-->
<div th:insert="~{frontpage::headtop}"></div>
<div class="container-fluid">
    <div class="row">
        <div th:insert="~{frontpage::textmenu}"></div>

        <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
            <h2>员工信息更新</h2>

            <div class="table-responsive">
               <!-- <table class="table table-striped table-sm">-->
            <form th:action="@{/user/update}"  method="post"  enctype="multipart/form-data">
                <label for="reCID" >编号</label>
                <td id="reCID">
                    <span th:text="${user.id}"> </span>
                    <input type="hidden" name="id"  th:value="${user.id}" />
                </td>
                        <br>
                        <label for="fname">用户名</label>
                        <input type="text" id="fname" name="username" th:value="${user.username}" />

                        <br>
                        <label for="realname">真实姓名</label>
                        <input type="text" id="realname" name="realname" th:value="${user.realname}" />
                        <br>
                        <tr>
                            <td valign="middle" align="right">
                                性别:
                            </td>
                            <td valign="middle" align="left">
                                男
                                <input type="radio" class="inputgri" name="gender" value="1" checked="checked"/>
                                女
                                <input type="radio" class="inputgri" name="gender" value="0"/>
                            </td>
                        </tr>
                        <br>
                        <label for="telephone">电话</label>
                        <input type="text" id="telephone" name="telephone" th:value="${user.telephone}">
                        <br>
                        <label for="email">邮箱</label>
                        <input type="text" id="email" name="email" th:value="${user.email}">

                        <br>
                        <label for="Onboarding">入职日期</label>
                        <input type="text" id="Onboarding" name="Onboarding" th:value="${#dates.format(user.Onboarding,'yyyy/MM/dd')}"
                               placeholder="填写格式：xxxx/xx/xx" />
                <p>
                    <input type="submit" class="button" value="确认更新 &raquo;" />
                    <input th:href="@{/user/findByPage}" type="submit" class="button" value="返回列表 &raquo;" />
                </p>

                </form>
               <!-- </table>-->
            </div>
            <div id="footer">
                <div id="footer_bg">
                    Personnel management procedures
                </div>
            </div>
               </main>
           </div>
        </div>

</body>
</html>